package flc.ast.fragment;

import android.os.Bundle;

import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import flc.ast.R;
import flc.ast.databinding.FragmentModeBinding;
import stark.common.basic.base.BaseNoModelFragment;
import stark.common.basic.event.EventStatProxy;

/**
 * A simple {@link Fragment} subclass.
 * Use the {@link ModeFragment#newInstance} factory method to
 * create an instance of this fragment.
 */
public class ModeFragment extends BaseNoModelFragment<FragmentModeBinding> {


    @Override
    protected int onCreate() {
        return R.layout.fragment_mode;
    }

    @Override
    protected void initView() {
        EventStatProxy.getInstance().statEvent5(getActivity(), mDataBinding.event5Container);

        mDataBinding.ivMode1.setOnClickListener(this);
        mDataBinding.ivMode2.setOnClickListener(this);
        mDataBinding.ivMode3.setOnClickListener(this);
        mDataBinding.ivMode4.setOnClickListener(this);
    }

    @Override
    protected void onClickCallback(View v) {
        switch (v.getId()) {
            case R.id.ivMode1:
                HomeFragment.onClickMode(0);
                break;
            case R.id.ivMode2:
                HomeFragment.onClickMode(1);
                break;
            case R.id.ivMode3:
                HomeFragment.onClickMode(2);
                break;
            case R.id.ivMode4:
                HomeFragment.onClickMode(3);
                break;
        }
    }

    @Override
    protected void initData() {

    }
}